package com.gmgx.hrms.dao.impl;

import com.gmgx.hrms.dao.ASDao;
import com.gmgx.hrms.entity.AS;
import com.gmgx.hrms.util.JDBCTools;

public class ASDaoImpl implements ASDao {
    private JDBCTools tools=new JDBCTools();
    @Override
    public boolean addAS(AS as) {
       int i=   tools.update("insert into t_as(as_emp,as_reason,as_date,as_money,as_status) values(?,?,?,?,?)",
                as.getAs_emp().getEmp_id(),as.getAs_reason(),as.getAs_date(),as.getAs_money(),as.getAs_status());
        return i>0;
    }
}
